#@layout()
#define main()
<h1>用户管理&nbsp;&nbsp;
    <a href="/jfinal/user/add">创建用户</a>
</h1>
<div class="table_box">
    <table class="list">
        <tbody>
        <tr>
            <th width="5%">id</th>
            <th width="20%">姓名</th>
            <th width="10%">年龄</th>
            <th width="30%">操作</th>
        </tr>

        #for(x : userPage.getList())
        <tr>
            <td style="text-align:left;">#(x.id)</td>
            <td style="text-align:left;">#(x.name)</td>
            <td style="text-align:left;">#(x.age)</td>
            <td style="text-align:left;">
                &nbsp;&nbsp;<a href="/jfinal/user/delete/#(x.id)">删除</a>
                &nbsp;&nbsp;<a href="/jfinal/user/edit/#(x.id)">修改</a>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    #@paginate(userPage.pageNumber, userPage.totalPage, "/jfinal/user/")
</div>
#end